import { Controller, Get, Param, Query } from '@nestjs/common';
import { CityDto } from '../dto/city.dto';

@Controller('cities')
export class CitiesController {

  @Get()
  async getCity(@Query() query): Promise<CityDto[]> {
    const { type } = query;
    return [];
  }

  @Get(':id')
  async getCityById(@Param() param): Promise<CityDto> {
    const id = param.id;
    return ;
  }

}